export default{
    namespaced:true,
    //定义数据
    state:{
        title:'添加',
        goodsData:{}
    },
    //无需action，只是简单的数据修改，没有异步或者其它的更为复杂的逻辑
    mutations:{
        changeTitle(state,payload){
            state.title = payload;
        },
        changeGoodsData(state,payload){
            state.goodsData = payload;
        }
    }
}